Part Number Hot Search : 
TVU05B 53640 11101 M27256F6 300CA 50N10 SCL4002B CTQ040
Product Description
Full Text Search
 

To Download EVAL-AD1954EB Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  information furnished by analog devices is be lieved to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. no license is granted by implication or other- wise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective companies. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781/329-4700 www.analog.com fax: 781/326-8703 ? 2003 analog devices, inc. all rights reserved. ad1954 sigmadsp ? 3-channel, 26-bit signal processing dac features 5 v 3-channel audio dac system accepts sample rates up to 48 khz 7 biquad filter sections per channel dual dynamic processor with arbitrary input/output curve and adjustable time constants 0 ms to 6 ms variable delay/channel for speaker alignment stereo spreading algorithm for phat stereo? effect program ram allows complete new program download via spi port parameter ram allows complete control of more than 200 parameters via spi port spi port features safe-upload mode for transparent filter updates 2 control registers allow complete control of modes and memory transfers differential output for optimum performance 112 db signal-to-noise (not muted) at 48 khz sample rate (a-weighted stereo) 70 db stop-band attenuation on-chip clickless volume control hardware and software controllable clickless mute digital de-emphasis processing for 32 khz, 44.1 khz, and 48 khz sample rates flexible serial data port with right-justif ed, left-justif ed, i 2 s compatible, and dsp serial port modes auxiliary digital input functional block diagram serial cont ro l interfa ce mclk mu x mclk genera to r ( 256f s / 512f s ) dac C l dac C r dac C sw da ta capture out a udio da ta mu x 26 22 dsp core da ta format : 3.23 (single precision) 3.45 (double precision) ram ro m 3 3 3 3 3 analog outputs ad1954 master clock outpu t serial da ta input s master clock input s serial da ta outpu t spi input spi da ta outpu t au x serial da ta input digit al outpu t graphical custom programming tools 44-lead mqfp or 48-lead lqfp plastic package applications 2.0/2.1 channel audio systems (two main channels plus subwoofer) multimedia audio automotive sound systems minicomponent stereo home theater systems (ac-3 postprocessor) musical instruments in-seat sound systems (aircraft, motor coaches) general description the ad1954 is a complete 26-bit single-chip 3-channel digital audio playback system with built-in dsp functionality for speaker equalization, dual-band compression/limiting, delay compensa- tion, and image enhancement. these algorithms can be used to compensate for real-world limitations of speakers, amplif ers, and listening environments, resulting in a dramatic improvement of perceived audio quality. the signal processing used in the ad1954 is comparable to that found in high-end studio equipment. most of the processing is done in full 48-bit double-precision mode, resulting in very good low-level signal performance and the absence of limit cycles or idle tones. the compressor/limiter uses a sophisticated two-band algorithm often found in high-end broadcast compressors. ( continued on 9 ) rev. a
ad1954 C2 C table of contents features/ applications . . . . . . . . . . . . . . . . . . . . . . . . 1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . 1 functional block diagram . . . . . . . . . . . . . . . . . . . 1 specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 absolute maximum ratings . . . . . . . . . . . . . . . . . . . 6 ordering guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 pin configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 pin function descriptions . . . . . . . . . . . . . . . . . . . . 7 typical performance characteristics . . . . . . . 8 general description (continued from page 1) . . . . . . . 9 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 pin functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 signal processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 signal processing overview . . . . . . . . . . . . . . . . . . . . . . . . . 12 numeric formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 coeff cient format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 internal dsp signal data format . . . . . . . . . . . . . . . . . . . . 12 high-pass filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 biquad filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 stereo image expander . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 main compressor/limiter . . . . . . . . . . . . . . . . . . . . . . . . . . 15 rms time constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 rms hold time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 rms release rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 look-ahead delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 postcompression gain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 subwoofer compressor/limiter . . . . . . . . . . . . . . . . . . . . . . 17 de-emphasis filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 using the sub reinjection paths for systems with no subwoofer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 interpolation filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 spi port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 spi address decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 control register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 control register 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 volume registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 parameter ram contents . . . . . . . . . . . . . . . . . . . . . . . . . . 22 options for parameter updates . . . . . . . . . . . . . . . . . . . . . . 22 soft shutdown mechanism . . . . . . . . . . . . . . . . . . . . . . . . . 22 safeload mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 summary of ram modes . . . . . . . . . . . . . . . . . . . . . . . . . . 24 spi read/write data formats . . . . . . . . . . . . . . . 2 4 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 power-up sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 setting the clock mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 setting the data and mclk input selectors . . . . . . . . . . . . 26 data capture registers . . . . . . . . . . . . . . . . . . . . . . 26 serial data input port . . . . . . . . . . . . . . . . . . . . . . . 2 9 serial data input modes . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 digital control pins . . . . . . . . . . . . . . . . . . . . . . . . . 29 mute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 de-emphasis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 analog output section . . . . . . . . . . . . . . . . . . . . . . 30 graphical custom programming tools . . . . . . 3 1 appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 cookbook formulae for audio eq biquad coeff cients . . . 3 2 outline dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 rev. a
C3 C ad1954Cspecifications test conditions, unless otherwise noted. supply voltages (av dd , dv dd ) 5.0 v ambient temperature 25c input clock 12.288 mhz input signal 1.000 khz 0 db full scale input sample rate 48 khz measurement bandwidth 20 hz to 20 khz word width 24 bits load capacitance 2200 pf load impedance 2.74 k input voltage high 2.1 v input voltage low 0.8 v analog performance * parameter min typ max unit resolution 24 bits signal-to-noise ratio (20 hz to 20 khz) (left/right output) no filter (stereo) 109 db with a-weighted filter 112 db dynamic range (20 hz to 20 khz, C60 db input) (left/right output) no filter 109 db with a-weighted filter 108 112 db total harmonic distortion plus noise (left/right output) v o = C0.5 db C93 C100 db signal-to-noise ratio (20 hz to 20 khz) (subwoofer output) no filter (stereo) 104 db with a-weighted filter 107 db dynamic range (20 hz to 20 khz, C60 db input) (subwoofer output) no filter 104 db with a-weighted filter 104 107 db total harmonic distortion plus noise (subwoofer output) v o = C0.5 db C90 C96 db analog outputs differential output range ( full scale) (left/right output) 2.74 v p-p differential output range ( full scale) (subwoofer output) 2.77 v p-p cmout 2.50 v dc accuracy gain error (left/right channel) C5 +5 % gain error (subwoofer channel) C8 +8 % interchannel gain mismatch C0.250 +0.250 db gain drift 150 ppm/c dc offset C30 +30 mv interchannel crosstalk (eiaj method) C120 db interchannel phase deviation 0.1 degrees mute attenuation C107 db de-emphasis gain error 0.1 db * performance of right and left channels are identical (exclusive of the interchannel gain mismatch and interchannel phase deviation specif cations). specif cations subject to change without notice. rev. a
C4 C ad1954 specifications (continued) digital i/o parameter min typ max unit input voltage high (v ih ) 2.1 v input voltage high (v ih ) C resetb 2.25 v input voltage low (v il ) 0.8 v input leakage (i ih @ v ih = 2.1 v) 10 a input leakage (i il @ v il @ v il il = 0.8 v) il = 0.8 v) il 10 a high level output voltage (v oh ), i oh = 2 ma dvdd C 0.5 v low level output voltage (v ol ), i ol = 2 ma ol = 2 ma ol 0.4 v input capacitance 20 pf specif cations subject to change without notice. power parameter min typ max unit supplies * voltage, analog and digital 4.5 5 5.5 v analog current 42 48 ma analog current, power-down 40 46 ma digital current 65 75 ma digital current, spi power-down 6 10 ma digital current, reset power-down 53 61 ma dissipation operation, both supplies 510 mw operation, analog supplies 210 mw operation, digital supplies 325 mw spi power-down, both supplies 230 mw reset power-down, both supplies 465 mw power supply rejection ratio 1 khz 300 mv p-p signal at analog supply pins C80 db 20 khz 300 mv p-p signal at analog supply pins C80 db * odvdd current is dependent on load capacitance and clock rate. specif cations subject to change without notice. temperature range parameter min typ max unit specif cations guaranteed 25 c functionality guaranteed C40 +105 c storage C55 +125 c specif cations subject to change without notice. rev. a
ad1954 C5 C digital timing parameter min typ max unit t dmdc mclk recommended duty cycle @ 12.288 mhz (256 f s mclk recommended duty cycle @ 12.288 mhz (256 f s mclk recommended duty cycle @ 12.288 mhz (256 f mode) 45 55 % t dmdc mclk recommended duty cycle @ 24.576 mhz (512 f s mclk recommended duty cycle @ 24.576 mhz (512 f s mclk recommended duty cycle @ 24.576 mhz (512 f mode) 40 60 % t dmd mclk delay (all mode) 25 ns t dbh bclk low pulsewidth 10 ns t dbh bclk high pulsewidth 10 ns t dbd bclk delay (to bclko) 25 ns t dls lrclk setup 0 ns t dlh lrclk hold 10 ns t dld lrclk delay (to lrclko) 25 ns t dds sdata setup 0 ns t ddh sdata hold 10 ns t ddd sdata delay (to sdatao) 25 ns t ccl cclk low pulsewidth 12 ns t cch cclk high pulsewidth 12 ns t cls clatch setup 10 ns t clh clatch hold 10 ns t cld clatch high pulsewidth 10 ns t cds cdata setup 0 ns t cdh cdata hold 10 ns t cod cout delay 35 ns t coh cout hold 2 ns t dcd dcsout delay 35 ns t dch dcsout hold 2 ns t pdrp pd/rst low pulsewidth 5 ns specif cations subject to change without notice. digital filter characteristics at 44.1 k h z parameter min typ max unit pass-band ripple 0.01 db stop-band attenuation 70 db pass band 20 khz 0.5442 f s f s f stop band 24 khz 0.4535 f s f s f group delay 24.625/f s 24.625/f s 24.625/f sec specif cations subject to change without notice. rev. a
ad1954 C6 C caution esd (electrostatic discharge) sensitive device. electrostatic charges as high as 4000 v readily ac cu mu late on the human body and test equipment and can discharge without detection. although the ad1954 features proprietary esd pro tec tion circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. therefore, proper esd pre cau tions are rec om mend ed to avoid per for mance deg ra da tion or loss of functionality. absolute maximum ratings * dvdd to dgnd . . . . . . . . . . . . . . . . . . . . . . . C0.3 v to +6 v odvdd to dgnd . . . . . . . . . . . . . . . . . . . . . . C0.3 v to +6 v avdd to agnd . . . . . . . . . . . . . . . . . . . . . . . . C0.3 v to +6 v digital inputs . . . . . . . . . . . . dgnd C 0.3 v to dvdd + 0.3 v analog inputs . . . . . . . . . . . . . agnd C 0.3 v to avdd + 0.3 v agnd to dgnd . . . . . . . . . . . . . . . . . . . . . C0.3 v to + 0.3 v reference voltage . . . . . . . . . . . . . . . . . . . . . (avdd + 0.3)/2 v maximum junction temperature . . . . . . . . . . . . . . . . . . 125c storage temperature range . . . . . . . . . . . . . . C65c to +150c soldering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300c/10 sec * stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specif cation is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. pin configurations 44-lead mqfp 3 4 5 6 7 1 2 10 11 8 9 40 39 38 41 42 43 44 36 35 34 37 29 30 31 32 33 27 28 25 26 23 24 pin 1 identifier top view (not to scale) 12 13 14 15 16 17 18 19 20 21 22 resetb avdd agnd agnd voutlC voutl+ avdd agnd avdd voutr+ ad1954 cdata lrclk1 sdata0 bclk0 lrckl0 cclk mclk2 mclk1 mclk0 deemp/sdata_aux mute dvdd sdata2 bclk2 lrclk2 sdata1 bclk1 voutrC agnd vouts+ voutsC clatch dgnd cout odvdd bclkout mclkout dcsout lrclkout sdataout zeroflag filtcap vref dgnd 48-lead lqfp 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 48 47 46 45 44 39 38 37 43 42 41 40 p in 1 identifie r top view (not to scale) nc agnd voutlC voutl+ avdd agnd avdd nc mclk 2 mclk 1 mclk 0 deemp/sdata_aux mute dvdd nc = no connect sdata2 bclk2 lrclk2 sdata1 voutr+ voutrC agnd vouts+ ad1954 bclk1 voutsC dgnd mclkout cout dcsout odvdd lrclkout bclkout sdataout zerofla g filtercap vref nc dgnd lrclk1 sdata0 bclk0 lrclk0 cdat a ccl k clatch resetb avdd agnd nc package characteristics (44-lead mqfp) min typ max unit ja (thermal resistance junction to ambient) 72 c/w jc (thermal resistance junction to ambient) 19.5 c/w package characteristics (48-lead lqfp) min typ max unit ja (thermal resistance junction to ambient) 76 c/w jc (thermal resistance junction to ambient) 17 c/w ordering guide model temperature range package description package option ad1954ys C40c to +105c 44-lead mqfp s-44 ad1954ysrl C40c to +105c 44-lead mqfp s-44 on 13" reel ad1954yst C40c to +105c 48-lead lqfp st-48 ad1954ystrl C40c to +105c 48-lead lqfp st-48 on 13" reel ad1954ystrl7 C40c to +105c 48-lead lqfp st-48 on 7" reel EVAL-AD1954EB evaluation board rev. a
ad1954 C7 C pin function descriptions pin no. pin no. input/ (44-mqfp) (48-lqfp) mnemonic output description * 1 nc no connect 1 2 mclk2 in master clock input 2 256 f s master clock input 2 256 f s master clock input 2 256 f /512 f s /512 f s /512 f 2 3 mclk1 in master clock input 1 256 f s master clock input 1 256 f s master clock input 1 256 f /512 f s /512 f s /512 f 3 4 mclk0 in master clock input 0 256 f s master clock input 0 256 f s master clock input 0 256 f /512 f s /512 f s /512 f 4 5 deemp/ in enables 44.1 khz de-emphasis filter (others available through spi control) sdata_aux auxiliary serial data input 5 6 mute in mute signal. initiates volume ramp-down. 6 7 dvdd digital supply for dsp core, 4.5 v to 5.5 v 7 8 sdata2 in serial data input 2 8 9 bclk2 in bit clock 2 9 10 lrclk2 in left/right clock 2 10 11 sdata1 in serial data input 1 11 12 bclk1 in bit clock 1 12 13 dgnd digital ground 13 14 lrclk1 in left/right clock 1 14 15 sdata0 in serial data input 0 15 16 bclk0 in bit clock 0 16 17 lrclk0 in left/right clock 0 17 18 cdata in spi data input 18 19 cclk in spi data bit clock 19 20 clatch in spi data framing signal 20 21 resetb in reset signal, active low 21 22 avdd analog 5 v supply 22 23 agnd analog gnd 24 nc no connect 23 25 voutsC out negative sub analog dac output 24 26 vouts+ out positive sub analog dac output 25 27 agnd analog gnd 26 28 voutrC out negative left analog dac output 27 29 voutr+ out positive left analog dac output 28 30 avdd analog 5 v supply 29 31 agnd analog gnd 30 32 avdd analog 5 v supply 31 33 voutl+ out positive left analog dac output 32 34 voutlC out negative left analog dac output 33 35 agnd analog gnd 36 nc no connect 37 nc no connect 34 38 vref in connection for filtered avdd/2 35 39 filtcap in connection for noise reduction capacitor 36 40 zeroflag out zero flag output. high when both left and right channels are 0 for 1024 frames. 37 41 sdataout out serial data mux output 38 42 bclkout out bit clock mux output 39 43 lrclkout out left/right clock mux output 40 44 odvdd digital supply pin for output drivers, 2.5 v to 5.5 v 41 45 dcsout out data capture serial output for data capture registers. use in conjunction with selected lrclk and bclk to form a 3-wire output. 42 46 cout out spi data output. three-stated when inactive. 43 47 mclkout out master clock output 512 f s master clock output 512 f s master clock output 512 f /256 f s /256 f s /256 f (frequency selected by spi register) 44 48 dgnd digital ground * for a complete description of the pins, refer to the pin functions section. rev. a
C8 C ad1954Ctypical performance characteristics 0 C160 0 2 0 2 4 6 8 14 16 18 C20 C80 C120 C40 C60 C100 C140 10 12 khz db tpc 1. fft of full-scale sine wave (32k points) 0 C160 0 2 0 2 4 6 8 14 16 18 C20 C80 C120 C40 C60 C100 C140 10 12 khz db tpc 2. fft of C60 db sine wave (32k points) hz 0 C20 20 10k C10 1k 100 C2 C4 C6 C8 C12 C14 C16 C18 50 200 500 5k db 2k tpc 3. frequency response of eq biquad filters 3.0 C3.0 C120 0 C100 C80 C20 0.5 C1.0 C2.0 0 C0.5 C1.5 C2.5 C60 C40 dbfs 2.5 1.5 2.0 1.0 db tpc 4. linearity plot C2.0 C120 0 C100 C80 C20 C60 ms C1.5 C1.0 C0.5 0 0.5 1.0 1.5 2.0 v tpc 5. tone-burst response with compressor threshold set to C20 db performance plots the following plots demonstrate the performance achieved on the actual silicon. tpc 1 shows an fft of a full-scale 1 khz signal, with a thd+n of C100 db, which is dominated by a second har monic. tpc 2 shows an fft of a C60 db sine wave, demon- strating the lack of low-level artifacts. tpc 3 shows a frequency response plot with the seven equalization biquads set to an alter- nating pattern of 6 db boosts and cuts. tpc 4 shows a linearity plot, where the measurement was taken with the same equalization curve used to make tpc 3. when the biquad f lters are not in use, the signal passes through the f lters with no quantization effects. tpc 4 therefore demonstrates that using double-precision math in the biquad f lters has virtually eliminated any quantization artifacts. tpc 5 shows a tone-burst applied to the compressor, with the attack and recovery characteristics plainly visible. the rms detector was programmed for normal rms time constants; the hold/decay feature was not used for this plot. rev. a
ad1954 C9 C an extensive spi port allows click-free parameter updates, along with read-back capability from any point in the algorithm f ow. the ad1954 includes adis patented multibit - dac architec- ture. this architecture provides 112 db snr and dynamic range and thd+n of C100 db. these specif cations allow the ad1954 to be used in applications ranging from low-end boom boxes to high-end professional mixing/editing systems. the ad1954 also has a digital output that allows it to be used purely as a dsp. this digital output can also be used to drive an external dac to extend the number of channels beyond the three that are provided on the chip. this chip can be used with either its default signal processing program or with a custom user-designed program. graphical pro- gramming tools are available from adi for custom programming. features the ad1954 is comprised of a 26-bit dsp (48 bits with double precision) for interpolation and audio processing, three multibit - modulators, and analog output drive circuitry. other features include an on-chip parameter ram that uses a safe-upload feature for transparent and simultaneous updates of f lter coeff cients and digital de-emphasis f lters. also, on-chip input selectors allow up to three sources of serial data and master clock to be selected. the 3-channel conf guration is especially useful for 2.1 playback systems that include two satellite speakers and a subwoofer. the default program allows for independent equalization and compression/limiting for the satellite and subwoofer outputs. figure 1 shows the block diagram of the device. the ad1954 contains a program ram that boots from an internal program rom on power-up. signal processing parameters are stored in a 256-location parameter ram, which is initialized on power-up by an internal boot rom. new values are written to the parameter ram using the spi port. the values stored in the parameter ram control the iir equalization f lters, the dual- band compressor/limiter, the delay values, and the settings of the stereo spreading algorithm. the ad1954 has a very sophisticated spi port that supports complete read/write capability of both the program and the para- meter ram. two control registers are also provided to control the chip serial modes and various other optional features. hand- shaking is also included for ease of memory uploads/downloads. the ad1954 contains four independent data capture circuits, which can be programmed to tap the signal f ow of the processor at any point in the dsp algorithm f ow. these captured signals can be accessed either through a separate serial out pin (i.e., that can be connected to an external dac or dsp) or by reading from the data capture spi registers. this allows the basic functionality of the ad1954 to be easily extended. the processor core in the ad1954 has been designed from the ground up for straightforward coding of sophisticated compres- sion/limiting algorithms. the ad1954 contains two independent compressor/limiters with rms based amplitude detection and attack/hold/release controls, together with an arbitrary compression curve that is loaded by the user into a look-up table that resides in the parameter ram. the compressor also features look-ahead compression that prevents compressor overshoots. general description ( continued from page 1 ) 3: 1 a udio da ta mu x 1 3 3 spi po rt 3: 1 mclk mu x 1 dac C l coefficient ro m 64 22 26 22 dsp core da ta form at : 3.23 (single precision) 3.45 (double precision) 3 3 analog outputs master clock i/o gr oup dcsout spi i/o gr oup 3 serial in 1 da ta memo ry , 512 26 cont ro l register s trap reg. (i 2 s, spi ) safelo ad register s pr ogram ram 512 35 p arameter ram 256 22 boo t ro m boo t ro m memo ry cont ro ller s dac C r dac C sw 2 bias analog bias gr oup resetb mute de-emphasis zer ofla g no tes 1 cont ro lled thr ough spi cont ro l registers. 2 dac does no t use digit al interpola tion. serial da ta i/o gr oup dcsout trap au x serial da ta input mclk genera to r 1 ( 256 f s / 512 f s in ) 256 f s / 512 f s ou t vo lta ge reference vref dv dd av dd od vd d 3 fi lt cap a gnd dgnd 3 2 fe 1. block daam rev. a
ad1954 C10 C the ad1954 has a very f exible serial data input port, which allows for glueless interconnection to a variety of adcs, dsp chips, aes/ebu receivers, and sample rate converters. the ad1954 can be conf gured in left-justif ed, i 2 s, right-justif ed, or dsp serial port compatible modes. it can support 16 bits, 20 bits, and 24 bits in all modes. the ad1954 accepts serial audio data in msb f rst, twos complement format. the part can also be set up in a 4-channel serial input mode by simultaneously using the serial input mux and the auxiliary serial input. the ad1954 operates from a single 5 v power supply. it is fabri- cated on a single monolithic integrated circuit and is housed in a 44-lead mqfp or 48-lead lqfp package for operation over the temperature range C40c to +105c. pin functions all input pins have a logic threshold compatible with ttl input levels and can therefore be used in systems with 3.3 v logic. all digital output levels are controlled by the odvdd pin, which may range from 2.7 v to 5.5 v, for compatibility with a wide range of external devices. (see pin function descriptions table.) sdata0, sdata1, sdata2 serial data inputs one of these three inputs is selected by an internal mux, set by writing to bits 7 and 6 in control register 2. default is 00, which selects sdata0. the serial format is selected by writing to bits 3C0 of control register 0. see spi read/write data formats section for recommendations on how to change input sources without causing a click or pop noise. lrclk0, lrclk1, lrclk2 left/right clocks for framing the input data the active lrclk input is selected by writing to bits 7 and 6 in control register 2. the default is 00, which selects lrclk0. the interpretation of the lrclk changes according to the serial mode, set by writing to control register 0. bclk0, bclk1, bclk2 serial bit clocks for clocking in the serial data the active bclk input is selected by writing to bits 7 and 6 in control register 2. default is 00, which selects bclk0. the interpretation of bclk changes according to the serial mode, which is set by writing to control register 0. lrclkout, bclkout, sdataout output of mux that selects one of the three serial input groups these pins may be used to send the selected serial input signals to other external devices. this output pin is enabled by writing a 1 to bit 8 of control register 2. the default mode is 0 or off. mclk0, mclk1, mclk2 master clock inputs active input selected by writing to bits 5 and 4 of control regis- ter 2. the default is 00, which selects mclk0. the master clock frequency must be either 256 f s f s f or 512 f s f s f , where f s , where f s , where f is the input sampling rate. the master clock frequency is programmed by writing to bit 2 of control register 2. the default is 0 (512 f s f s f ). see the initialization section for recommendations concerning how to change clock sources without causing an audio click or pop. note that since the default mclk source pin is mclk0, there must be a clock signal present on this pin on power-up so that the ad1954 can complete its initialization routine. mclkout master clock output the master clock output pin may be programmed to produce either 256 f s f s f , 512 f s f s f , or a copy of the selected mclk input pin. this pin is programmed by writing to bits 1 and 0 of control register 2. the default is 00, which disables the mclko pin. cdata serial data in for the spi control port see spi port section for more information on spi port timing. cout serial data output this is used for reading back registers and memory locations. it is three-stated when an spi read is not active. see spi port section for more information on spi port timing. cclk spi bit rate clock cclk spi bit ra te clock cclk this pin either may run continuously or be gated off in between spi transactions. see spi port section for more information on spi port timing. clatch spi latch signal it must go low at the beginning of an spi transaction and high at the end of a transaction. each spi transaction may take a different number of cclks to complete, depending on the address and read/write bit that are sent at the beginning of the spi transaction. detailed spi timing information is given in spi port section. resetb active low reset signal after resetb goes high, the ad1954 goes through an initial- ization sequence where the program and parameter rams are initialized with the contents of the on-board boot roms. all spi registers are set to 0, and the data rams are also zeroed. the initialization is complete after 1024 mclk cycles. since the mclk in freq select (bit 2 in control register 2) defaults to 512 f s f s f at power-up, this initialization will proceed at the external mclk rate and will take 1024 mclk cycles to com- plete, regardless of the absolute frequency of the external mclk. new values should not be written to the spi port until the initial- ization is complete. zeroflag zero-input indicator this pin will go high if both serial inputs have been inactive (zero data) for 1024 lrclk cycles. this pin may be used to drive an external mute fet for reduced noise during digital silence. this pin also functions as a test out pin, controlled by the test register at spi address 511. while most test modes are not useful to the end user, one may be of some use. if the test register is pro- grammed with the number 7 (decimal), the zeroflag output will be switched to the output of the internal pseudo-random noise generator. this noise generator operates at a bit rate of 128 f s f s f and has a repeat time of once per 224 cycles. this mode may be used to generate white noise (or, with appropriate f ltering, pink noise) to be used as a test signal for measuring speakers or room acoustics. rev. a
ad1954 C11 C dcsout data capture serial out this pin will output the dsps internal signals, which can be used by external dacs or other signal processing devices. the signals that are captured and output on the dcsout pin are controlled by writing program counter trap numbers to spi addresses 263 (for the left output) and 264 (for the right output). when the inter- nal program counter contents are equal to the trap values written to the spi port, the selected dsp register is transferred to the dcsout parallel-to-serial registers and shifted out on the dcsout pin. table xx shows the program counter trap values and register-select values that should be used to tap various inter- nal points of the algorithm f ow. the dcsout pin is meant to be used in conjunction with the lrclk and bclk signals that are provided to the serial input port. the format of dcsout is the same as the format used for the serial port. in other words, if the serial port is running in i 2 s mode, then the dcsout pin, together with the lrclk0 and bclk0 pins (assuming input 0 is selected), will form a valid 3-wire i 2 s output. the dcsout pin can be used for a variety of purposes. if the dcsout pin is used to drive another external dac, then a 4.1 system is possible using a new program downloaded into the program ram. deemp/sdata_aux de-emphasis input pin/auxiliary serial deemp/sdata_aux de-emphasis input pin/auxiliar y ser ial deemp/sdata_aux data input in de-emphasis mode, if this pin is asserted high, then a digital de-emphasis f lter will be inserted into the signal f ow. the de-emphasis curve is valid only for a sample rate of 44.1 khz; curves for 32 khz and 48 khz may be programmed using the spi port. this pin can also be used as an auxiliary 2-channel serial data input. this function is set by writing a 1 to bit 11 of control register 1. the same clocks are used for this serial input as are used for the sdata0, sdata1, and sdata2 signals. this serial input can only be used in the signal processing f ow when using analog devices custom programming tools; see the graphical custom programming tools section. the use of de-emphasis is still available while this pin is used as a serial input but only through spi control. mute mute output signal when this pin is asserted high, a ramp sequence is started, which gradually reduces the volume to zero. when de-asserted, the volume ramps from zero back to the original volume setting. the ramp speed is timed so that it takes 10 ms to reach 0 volume when starting from the default 0 db volume setting. voutl+, voutl2 left channel differential analog outputs full-scale outputs correspond to 1 vrms on each output pin or 2 v rms differential, assuming a vref input voltage of 2.5 v. the full-scale swing scales directly with vref. these outputs are capable of driving a load of >5 k , with a maximum peak current of 1 ma from each pin. an external third order f lter is recom- mended for f ltering out-of-band noise. voutr+, voutr2 right channel differential outputs see characteristics for left channel voutl+, voutlC. vouts+, vouts2 subchannel differential outputs these outputs are designed to drive loads of 10 k or greater, with a peak current capability of 250 a. this output does not use digital interpolation, since it is intended for low frequency applications. an external third order f lter with a cutoff frequency <2 khz is recommended. vref analog reference voltage input the nominal vref input voltage is 2.5 v; the analog gain scales directly with the voltage on this pin. when using the ad1954 to drive a power amplif er, it is recommended that the vref voltage be derived by dividing down and heavily f ltering the supply to the power amplif er. this provides a benef t if the compressor/limiter in the ad1954 is used to prevent amplif er clipping. in this case, if the dac output voltage is scaled to the amplif er power supply, a f xed compressor threshold can be used to protect an amplif er whose supply may vary over a wide range. any ac signal on this pin will cause distortion, and therefore, a large decoupling capaci- tor may be necessary to ensure that the voltage on vref is clean. the input impedance of vref is greater than 1 m . filtcap filter capacitor point this pin is used to reduce the noise on an internal biasing point in order to provide the highest performance. it may not be neces- sary to connect this pin, depending on the quality of the layout and the grounding used in the application circuit. dvdd digital vdd for core 5 v nominal. odvdd digital vdd for all digital outputs variable from 2.7 v to 5.5 v. dgnd (2) digital ground avdd (3) analog vdd 5 v nominal. for best results, use a separate regulator for avdd. bypass capacitors should be placed close to the pins and connected directly to the analog ground plane. agnd (3) analog ground for best performance, separate nonoverlapping analog and digital ground planes should be used. rev. a
ad1954 C12 C signal processing signal processing overview figure 2 shows the signal processing f ow diagram of the ad1954. the ad1954 is designed to provide all the signal processing functions commonly used in 2.0 or 2.1 playback systems. a seven- biquad equalizer operates on the stereo input signal. the output of this equalizer is fed to a two-biquad crossover f lter for the main channels, and the mono sum of the left and right equalizer outputs is fed to a three-biquad crossover f lter for the subchannel. each of the three channels has independent delay compensation. there are two high quality compressor/limiters available: one operating on the left/right outputs and one operating on the subwoofer chan- nel. the subwoofer output may be blended back into the left/right outputs for 2.0 playback systems. in this conf guration, the two independent compressor/limiters provide two-band compression, which signif cantly improves the sound quality of compressed audio. in addition, the main channels have a stereo widening algorithm that increases the perceived spread of the stereo image. most of the signal processing functions are coded using full 48-bit double-precision arithmetic. the input word length is 24 bits, with two extra headroom bits added in the processor to allow internal gains up to 12 db without clipping (additional gains can be accommodated by scaling down the input signal in the f rst biquad f lter section). a graphical user interface (gui) is available for evaluation of the ad1954 (figure 3). this gui controls all of the functions of the chip in a very straightforward and user friendly interface. no code needs to be written to use the gui to control the chip. for more information on ad1954 software tools, send an e-mail to sigmadsp@analog.com. each section of this f ow diagram will be explained in detail on the following pages. numeric formats it is common in dsp systems to use a standardized method of specifying numeric formats. to better comprehend issues relating to precision and overf ow, it is helpful to think in terms of fractional twos complement number systems. fractional number systems are specif ed by an a.b format, where a is the number of bits to the left of the decimal point, and b is the number of bits to the right of the decimal point. in a twos complement system, there is also an implied offset of one-half of the binary range; for example, in a twos complement 1.23 system, the legal signal range is C1.0 to +(1.0 C 1 lsb). the ad1954 uses two different numeric formats: one for the coeff cient values (stored in the parameter ram) and one for the signal data values. the coeff cient format is as follows: coeff cient format coeff cient format: 2.20 range: C2.0 to +(2.0 C 1 lsb) examples: 1000000000000000000000 = C2.0 1100000000000000000000 = C1.0 1111111111111111111111 = (1 lsb below 0.0) 0000000000000000000000 = 0.0 0100000000000000000000 = 1.0 0111111111111111111111 = (2.0 C 1 lsb) this format is used because standard biquad f lters require coeff cients that range between +2.0 and C2.0. it also allows gain to be inserted at various places in the signal path. internal dsp signal data format input data format: 1.23 this is sign extended when written to the data memory of the ad1954. internal dsp signal data format: 3.23 range: C4.0 to +(4.0 C 1 lsb) examples: 10000000000000000000000000 = C4.0 11000000000000000000000000 = C2.0 11100000000000000000000000 = C1.0 11111111111111111111111111 = (1 lsb below 0.0) 00000000000000000000000000 = 0.0 00100000000000000000000000 = 1.0 01000000000000000000000000 = 2.0 01111111111111111111111111 = (4.0 C 1 lsb). the sign extension between the serial port and the dsp core allows for up to 12 db of gain in the signal path without internal clipping. gains greater than 12 db can be accommodated by scaling the input down in the f rst biquad f lter and scaling the signal back up at the end of the biquad f lter section. a digital clipper circuit is used between the output of the dsp core and the input to the dac - modulators to prevent over- loading the dac circuitry (see figure 4). note that there is a gain factor of 0.75 used in the dac interpolation f lters, and therefore signal values of up to 1/0.75 will pass through the dsp without clipping. since the dac is designed to produce an analog output of 2 v rms (differential) with a 0 db digital input, signals between hpf/ deemph hpf/ deemph in right in left volume volume phat stereo d ela y (0 m sC3.7ms) d ela y (0 m sC3.7ms) d ela y (0 m sC2.3ms) d ela y (0 m sC2.3ms) 8 interpolation dac out left 8 interpolation dac out right volume 1 biquad filter d ela y (0 m sC3.7ms) mono dac l/r reinjection level subwoofer outpu t sub dynamics processo r sub channe l l/r mi x eq and crossover filter s l/r dynamics processo r level detect , look-up tabl e level detect , look-up tabl e 7 biquad filter s 7 biquad filter s crossover (2 filters) crossover (2 filters) crossover (3 filters) figure 2. signal processing flow rev. a
ad1954 C13 C 0 db and 1/0.75 (approximately 3 db) will produce larger analog outputs and result in slightly degraded analog performance. this extra analog range is necessary in order to pass 0 dbfs square waves through the system, since these square waves cause over- shoots in the interpolation f lters, which would otherwise brief y clip the digital dac circuitry. a separate digital clipper circuit is used in the dsp core to ensure that any accumulator values that exceed the numeric 3.23 format range are clipped when taken from the accumulator. high-pass filter the high-pass f lter is a f rst order double-precision design. the pur- pose of the high-pass f lter is to remove digital dc from the input. if this dc were allowed to pass, the detectors used in the compres sor/ limiter would give an incorrect reading for low signal levels. the high-pass f lter is controlled by a single parameter (alpha_hpf), which is programmed by writing to spi location 180 in 2.20 twos complement format. the following equation can be used to calcu- late the parameter alpha_hpf from the C3 db point of the f lter: alpha_hpf C exp p hpf_cutoff f s = ? ? ? ? ? ? 1.0 C2.0 where exp is the exponential operator, exp is the exponential opera tor, exp hpf_cutoff is the high- hpf_cutoff is the high- hpf_cutoff pass cutoff in hz, and f s f s f is the audio sampling rate. the default s is the audio sampling ra te. the def ault s value for the C3 db cutoff of the high-pass f lter is 2.75 hz at a sampling rate of 44.1 khz. biquad filters each of the two input channels has seven second order biquad sections in the signal path. in addition, the left and right channels have two additional biquad f lters that may be used either as crossover f lters or as additional equalization f lters. the subchan- nel has three additional biquad f lters that are also to be used as equalization and/or crossover f lters. in a typical scenario, the f rst seven biquads would be used for speaker equalization and/or tone controls, and the remaining f lters would be programmed to function as crossover f lters. note that there is a common equal- ization section used for both the main and sub channels, followed by the crossover f lters. this arrangement prevents any interaction from occurring between the crossover f lters and the equalization f lters. one section of the biquad iir f lter is shown in figure 5. figure 3. graphical user interface signal processing (3.23 format ) serial port dac interpolation filters (3.23 format ) digital s - d modulators (1.23 format ) digital clipper data in 2-bit sign extention 0.75 1.23 3.23 figure 4. numeric precision and clipping structure rev. a
ad1954 C14 C b0 in out b1 b2 a1 a2 z C1 z C1 z C1 z C1 figure 5. biquad filter this section implements the transfer function: h z b b z b z a z C a z ( ) = + + ( ) ? ( ) 0 1 1 1 C1 C2 C1 C2 2 2 the coeff cients a1, a2, b0, b1, and b2 are all in twos comple- ment 2.20 format with a range from C2 to +2 (minus 1 lsb). the negative sign on the a1 and a2 coeff cients is the result of adding both the feed-forward b terms as well as the feedback a terms. some digital f lter packages automatically produce the correct a1 and a2 coeff cients for the topology of figure 5, while others assume a denominator of the form 1 + a1 z C1 + a2 z C1 . in this case, it may be necessary to invert the a1 and a2 terms for proper operation. the biquad structure shown in figure 5 is coded using double- precision math to avoid limit cycles from occurring when low frequency f lters are used. the coeff cients are programmed by writing to the appropriate location in the parameter ram, through the spi port (see table vi). there are two possible sce- narios for controlling the biquad f lters: 1. dynamic adjustment (e.g., bass/treble control or parametric equalizer). when using dynamic f lter adjustment, it is highly recom- mended that the user employ the safeload mechanism to avoid temporary instability when the f lters are dynamically updated. this could occur if some, but not all, of the coeff cients were updated to new values when the dsp calculates the f lter output. the operation of the safeload registers is detailed in the options for parameter updates section. 2. setting static eq curve after power-up. if many of the biquad f lters need to be initialized after power- up (e.g., to implement a static speaker correction curve), the recommended procedure is to set the processor shutdown bit, wait for the volume to ramp down (about 20 ms), and then write directly to the parameter ram in burst mode. after the ram is loaded, the shutdown bit can be de-asserted, causing the volume to ramp back up to the initial value. this entire proce- dure is click-free and faster than using the safeload mechanism. the data paths of the ad1954 contain an extra two bits on top of the 24 bits that are input to the serial port. this allows up to 12 db of boost without clipping. however, it is important to remember that it is possible to design a f lter that has less than 12 db of gain at the f nal f lter output, but more than 12 db of gain at the output of one or more intermediate biquad f lter sections. for this reason, it is important to cascade the f lter sections in the correct order, putting the sections with the largest peak gains at the end of the chain rather than at the beginning. this is standard practice when coding iir f lters and is covered in basic books on dsp coding. if gains larger than 12 db cannot be avoided, then the coeff cients b0 through b2 of the f rst biquad section may be scaled down to f t the signal into the 12 db maximum signal range and then scaled back up at the end of the f lter chain. volume three separate spi registers are used to control the volumeone each for the left, right, and sub channels. these registers are special in that they include automatic digital ramp circuitry for clickless volume adjustment. the volume control word is in 2.20 format and therefore gains from +2.0 to C2.0 are possible. the default value is 1.0. it takes 1024 audio frames to adjust the vol- ume from 2.0 down to 0; in the normal case where the maximum volume is set to 1.0, it will take 512 audio frames for this ramp to reach zero. note that a mute command is the same as setting the volume to zero, except that when the part is unmuted, the vol- ume returns to its original value. these volume ramp times assume that the ad1954 is set for the fast volume ramp speed. if the slow setting is selected, it will take 8192 audio frames to reach zero from a setting of 2.0. cor- respondingly, it will take 4096 frames to reach 0 volume from the normal setting of 1.0. the volume blocks are placed after the biquad f lter sections to maximize the level of the signal that is passed through the f lter sections. in a typical situation, the nominal volume setting might be C15 db, allowing a substantial increase in volume when the user increases the volume. the ad1954 was designed with an analog dynamic range of >112 db, so that in the typical situation with the volume set to C15 db, the signal-to-noise ratio at the output will still exceed 97 db. greater output dynamic ranges are pos- sible if the compressor/limiter is used, since the post-compression gain parameter can boost the signal back up to a higher level. in this case, the compressor will prevent the output from clipping when the volume is turned up and the input signal is large. stereo image expander the image enhancement processing is based on adis patented phat stereo algorithm. the block diagram is shown in figure 6. 1khz first order lpf level left in right in left out right out + + C C C figure 6. stereo image expander the algorithm works by increasing the phase shift for low frequency signals that are panned left or right in the stereo mix. since the ear is responsive to interaural phase shifts below 1 khz, this increase in phase shifts results in a widening of the stereo image. note that signals panned to the center are not processed, resulting in a more natural sound. there are two parameters that control the phat stereo algorithm: the level variable, which controls how much out- of-phase information is added to the left and right channels, and the cutoff frequency of the f rst order low-pass f lter, which deter- mines the frequency range of the added out-of-phase signals. for best results, the cutoff frequency should be in the range of 500 hz to 2 khz. these parameters are controlled by altering the param- eter ram locations that store the parameters spread_level and alpha_spread. the spread_level is a linear number in 2.20 format that multiplies the processed left-right signal before it is added to or subtracted from the main channels. the parameter alpha_spread rev. a
ad1954 C15 C is related to the cutoff frequency of the f rst order low-pass f lter by the equation: alpha_spread C exp p spread_freq f s = ? ? ? ? ? ? 1.0 C2.0 where exp is the exponential operator, exp i s t h e e x p o n e n t i a l o p e r a t o r , exp spread_freq is the low-pass spread_freq i s t h e l o w - p a s s spread_freq cutoff in hz, and f s f s f is the audio sampling rate. s is the audio sampling ra te. s note that the stereo spreading algorithm assumes that frequencies below 1 khz are present in the main satellite speakers. in some systems, the crossover frequency between the satellite and sub- woofer speakers is quite high (>500 hz). in such a case, the stereo spreading algorithm will not be effective, since the frequencies that contribute to the spreading effect will come mostly from the subwoofer, which is a mono source. delay each of the three dac channels has a delay block that allows the user to introduce a delay of up to 165 audio samples. the delay values are programmed by entering the delay (in samples) into the appropriate location of the parameter ram. with a 44.1 khz sample rate, a delay of 165 samples corresponds to a time delay of 3.74 ms. since sound travels at approximately 1 foot/ms, this can be used to compensate for speaker placements that are off by as much as 3.74 feet. an additional 100 samples of delay are used in the look-ahead portion of the compressor/limiter but only for the main two chan- nels. this can be used to increase the total delay for the left and right channels to 265 samples or 6 ms at 44.1 khz. main compressor/limiter the compressor used in the ad1954 is quite sophisticated and is comparable in many ways to the professional compressor/limiters used in the professional audio and broadcast f elds. it uses rms/ peak detection with adjustable attack/hold/release, look-ahead compression, and table-based entry of the input/output curve for complete f exibility. the ad1954 uses two compressor/limiters: one in the subwoofer dac and one in the main left/right dac. it is well known that having independent compressors operating over different fre- quency ranges results in a superior perceived sound. with a single-band compressor, loud bass information will modulate the gain of the entire audio signal, resulting in suboptimal maximum perceived loudness as well as gain pumping or modulation effects. with independent compressors operating separately on the low and high frequencies, this problem is dramatically reduced. if the ad1954 is being operated in two-channel mode, an extra path is added so that the subwoofer channel can be added back into the main channel. this maintains the advantage of using a two-band compressor, even in a 2.0 system conf guration. figure 7 shows the traditional basic analog compressor/limiter. it uses a voltage controlled amplif er to adjust gain and a feed- forward detector path using an rms detector with adjustable time constants, followed by a nonlinear circuit, to implement the desired input/output relationship. a simple compressor will have a single threshold above which the gain is reduced. the amount of compression above the threshold is called the compression ratio and is def ned as db change in input/db change in output. for example, if the input to a 2:1 compressor is increased by 2 db, the output will rise by 1 db for signals above the threshold. a single hard threshold results in more audible behavior than a so-called soft-knee compressor, where the compression is in- troduced more gradually. in an analog compressor, the soft-knee characteristic is usually made by using diodes in their exponential turn-on region. filter rms detecto r with db out compression curv e nonlinear circuit s vca with exp control threshol d slope out figure 7. analog compressor the best analog compressors use rms detection as the signal amplitude detector. the only class of detectors that is not sensi- tive to the phase of the harmonics in a complex signal are rms detectors. the ear also bases its loudness judgment on the overall signal power and therefore using an rms detector results in the best audible performance. compressors that are based on peak detection, while good for preventing clipping, are generally quite poor for audible performance. rms detectors have a certain time constant that determines how rapidly they can respond to transient signals. there is always a trade-off between speed of response and distortion. figure 8 shows this trade-off. input wa veform compressor envelope fa st time const ant compressor envelope slo w time const ant figure 8. ef fect of rms t ime constant on distor tion in the case of a fast-responding rms detector, the detector envelope will have a signal component in addition to the desired dc com- ponent. this signal component (which, for an rms detector, is at twice the input frequency) will result in harmonic distortion when multiplied by this detector signal. the ad1954 uses a modif ed rms algorithm to improve the relation- ship between acquisition time and distortion. it uses a peak-riding circuit together with a hold circuit to modify the rms signal, as shown in figure 9. this f gure shows two envelopes. one has the harmonic distortion, as seen in the previous f gure, and the other, f atter envelope is the one produced by the ad1954. rev. a
ad1954 C16 C input wa veform hold time, spi - pr ogrammabl e release time, spi - pr ogrammabl e figure 9. using the hold and release time feature using this idea of a modif ed rms algorithm, the true rms value is still obtained for all but the lowest frequency signals, while the distortion due to rms ripple is reduced. it also allows the user to set the hold and release times of the compressor independently. the detector path of the ad1954 is shown in figure 10. the rms detector is controlled by three parameters stored in the parameter rams: the rms time constant, the hold time, and the release rate. the log output of the rms detector is applied to a look-up table with interpolation. the higher bits of the rms output form an offset into this table, and the lower bits are used to interpolate between the table entries to form a high-precision gain word. the look-up table resides in the parameter ram and is loaded by the user to give the desired curve. the look-up table contains 33 data locations, and the lsb of the address into the look-up table corresponds to a 3 db change in the amplitude of the detector signal. this gives the user the ability to program an input/output curve over a 99 db range. for the main compressor, the table resides in locations 110 to 142 in the spi parameter ram. look-up tabl e linear interpolation modified rm s detector wit h log outpu t output to gain stage high bits (1lsb = 3db) low bit s time constant hol d release figure 10. gain derived from interpolated look-up table one subtlety of the look-up table involves the difference between the rms value of a sine wave and that of a square wave. if a full- scale square wave is applied to the ad1954, the rms value of this signal will be 3 db higher than the rms value of a 0 dbfs sine wave. therefore, the table ranges from +9 db (location 142) to C87 db (location 110). the entries in the table are linear gain words in 2.20 format. figure 11 shows an example of the table entries for a simple above-threshold compressor. input level C 3db/t able entr y output level C db input level C 3db/t able entr y linear gain desire d compression cur ve figure 11. example of table entry for a given compression curve note that the maximum gain that can be entered in the table is 2.0 (minus 1 lsb). if more gain is required, the entire compres- sion curve may be shifted upward by using the post-compression gain block following the compressor/limiter. the ad1954 compressor/limiter also includes a look-ahead com- pression feature. the idea behind look-ahead compression is to prevent compressor overshoots by applying some digital delay to the signal before the gain-control multiplier but not to the detec- tor path. in this way, the detector can acquire the new amplitude of the input signal before the signal actually reaches the multiplier. a comparison of a tone burst fed to a conventional compressor versus a look-ahead compressor is shown in figure 12. conventional compressor gain look-ahead compressor gain hold time figure 12. conventional compression vs. look-ahead compression rev. a
ad1954 C17 C in the look-ahead compressor, the gain has already been reduced by the time that the tone-burst signal arrives at the multiplier input. note that when using a look-ahead compressor, it is important to set the detector hold time to a value that is at least the same as the look-ahead delay time or the compressor release will start too soon, resulting in an expanded tail of a tone-burst signal. the complete f ow of the left/right dynamics processor is shown in figure 13. look-up tabl e linear interpolation modified rm s detector wit h log outpu t high bits (1lsb = 3db) low bit s time constant hol d release dela y dela y spi-programmabl e look-ahead dela y postcompression gain, spi - programmabl e up to 30d b 2 (l+r) figure 13. complete dynamics flow, main channels the detector path works from the sum of the left and right channels ((l + r)/2). this is the normal way that compressors are built and counts on the fact that the main instruments in any stereo mix are seldom recorded deliberately out of phase, especially in the lower frequencies that tend to dominate the energy spectrum of real music. the compressor is followed by a block known as post-compression gain. most compressors are used to reduce the dynamic range of music by lowering the gain during loud signal passages. this results in an overall loss of volume. this loss can be made up by introducing gain after the compressor. in the ad1954, the coef- f cient format used is 2.20, which has a maximum f oating-point representation of slightly less than 2.0. this means that the maxi- mum gain that can be achieved in a single instruction is 6 db. to get more gain, the program in the ad1954 uses a cascade of f ve multipliers to achieve up to 30 db of post-compression gain. to program the compressor/limiter, the following formulas may be used to determine the 22-bit numbers (in 2.20 format) to be entered into the parameter ram. rms time constant this can be best expressed by entering the time constant in terms of db/sec raw release rate (without the peak-riding circuit). the attack rate is a rather complicated formula that depends on the change in amplitude of the input sine wave. rms_tconst_parameter C _ = ( ) ? ? ? ? ? ? 1.0 10 . release rate f s 10 0 where rms_tconst_parameter = the fractional number to enter into rms_tconst_parameter = the fractional number to enter into rms_tconst_parameter the spi ram (after converting to 22-bit 2.20 format), and the release_rate = the release rate of the raw rms detector in db/sec. this must be negative, and f s f s f = the audio sample rate. s = the audio sample ra te. s rms hold time rms_hold_time_parameter int hold_time = ( ) f s where rms_holdtime_parameter = the integer number to enter into rms_holdtime_parameter = the integer number to enter into rms_holdtime_parameter the spi ram, f s f s f = the audio sample rate, s = the audio sample ra te, s hold_time = the abso- lute time to wait before starting the release ramp-down of the detector output, and int () = the integer part of the expression. rms release rate rms_decay_parameter int rms_decay / = ( ) 0.137 where rms_decay_parameter = the decimal integer number to enter rms_decay_parameter = t h e d e c i m a l i n t e g e r n u m b e r t o e n t e r rms_decay_parameter into the spi ram, rms_decay = the decay rate in db/sec, and int () = the integer part of the expression. look-ahead delay lookahead_delay_parameter lookahead_delay f = s where lookahead_delay = the predictive compressor delay in absolute time, f s f s f = the audio sample rate, and the maximum s = the audio sample ra te, and the maximum s lookahead_delay_parameter value is 100. lookahead_delay_parameter v alue is 100. lookahead_delay_parameter postcompression gain post_compression_gain_parameter post_compression_gain_linear = ( ) 1/ 5 where post_compression_gain_linear is the linear post-compression post_compression_gain_linear i s t h e l i n e a r p o s t - c o m p r e s s i o n post_compression_gain_linear gain and ^ = the raise to the power. subwoofer compressor/limiter the subwoofer compressor/limiter differs from the left/right compressor in the following ways: 1. the subwoofer compressor operates on a weighted sum of the left and right inputs (aa 3 left + bb 3 right), where aa and bb are both programmable. 2. the detector input has a biquad f lter in series with the input in order to implement frequency-dependent compression thresholds. 3. there is no predictive compression since presumably the input signals are f ltered to pass only low frequencies and therefore transient overshoots are not a problem. the subwoofer compressor signal f ow is shown in figure 14. look-up tabl e linear interpolation modified rm s detector wit h log outpu t high bits (1lsb = 3db) low bit s time constant hol d release v in _sub = k1 3 left_in + k2 3 right_in postcompression gain, spi - programmabl e up to 30d b biquad filter figure 14. signal flow for subwoofer compressor rev. a
ad1954 C18 C the biquad f lter before the detector can be used to implement a frequency-dependent compression threshold. for example, assume that the overload point of the woofer is very frequency depen- dent. in this case, one would have to set the compressor threshold to a value that corresponded to the most sensitive overload fre- quency of the woofer. if the input signal happened to be mostly in a frequency range where the woofer was not so sensitive to overload, then the compressor would be too pessimistic and the volume of the woofer would be reduced. if, on the other hand, the biquad f lter were designed to follow the woofer excursion curve of the speaker, then the volume of the woofer could be maximized under all conditions. this is illustrated in figure 15. 20hz 200hz freq uency w oofer excursion biq ua d respons e 20hz freq uency 200hz figure 15. optimizing woofer loudness using the subwoofer rms biquad filter when using a f lter in front of the detector, a confusing side effect occurs. if one measures the frequency response by using a swept sine wave with an amplitude large enough to be above the com- pressor threshold, the resulting frequency response will not look f at. however, this is not real in the sense that, as the sine wave is swept through the system, the gain is being slowly modulated up and down according to the response of the biquad f lter in front of the detector. if one measures the response using a pink noise gen- erator, the result will look much better, since the detector will settle on only one gain value. the perceptual effect of the swept sine wave test is not at all what would be predicted by simply looking at the frequency response curve; it is only the signal path f lters that will affect the perception of the frequency response, not the detector path f lters. de-emphasis filtering the standard for encoding cds allows the use of a pre-emphasis curve during encoding, which must be compensated for by a de-emphasis curve during playback. the de-emphasis curve is def ned as a f rst order shelving f lter with a single pole at (1/(2 50 s)) followed by a single zero at (1/(2 15 s)). this curve may be accurately modeled using a f rst order digital f lter. this f lter is included in the ad1954; it is not part of the bank of biquad f lters and so does not take away from the num- ber of available f lters. since the specif cation of the de-emphasis f lter is based on an analog f lter, the response of the f lter should not depend on the incoming sampling rate. however, when the de-emphasis f lter is implemented digitally, the response will scale with the sampling rate unless the f lter coeff cients are altered to suit each possible input sampling rate. for this reason, the ad1954 includes three separate de-emphasis curves: one each for sampling rates of 32 khz, 44.1 khz, and 48 khz. these curves are selected by writing to bits 5 and 4 of control register 1 over the spi port. alternatively, the 44.1 khz curve can be called upon using the deemp/sdata_aux pin. this pin is included for compatibility with cd decoder chips that have a de-emphasis output pin. using the sub reinjection paths for systems with no subwoofer many systems will not use a subwoofer but would still benef t from two-band compression/limiting. this can be accommodated by using sub reinjection paths in the program f ow. these param- eters are programmed by entering two numbers (in 2.20 format) into the parameter ram. note that if the biquad f lters are not properly designed, the frequency response at the crossover point may not be f at. many crossover f lters are designed to be f at in the sense of adding the powers together, but nonf at if the sum is done in voltage mode. the user must take care to design an appro- priate set of crossover f lters. interpolation filters the left and right channels have a 128:1 interpolation f lter with 70 db stop-band attenuation that precedes the digital - modu- lator. this f lter has a group delay of approximately 24.1875/f s lator. this f lter has a group delay of approximately 24.1875/f s lator. this f lter has a group delay of approximately 24.1875/f taps, where f s taps, where f s taps, where f is the sampling rate. the sub channel does not use an interpolation f lter. the reason for this (besides saving valuable mips) is that it is expected that the bandwidth of the sub output will be limited to less than 1 khz. with no interpolation f lter, the f rst image will therefore be at 43.1 khz (which is f s f rst image will therefore be at 43.1 khz (which is f s f rst image will therefore be at 43.1 khz (which is f C 1 khz for cd audio). the standard external f lter used for both the main and sub channels is a third order, single op amp f lter. if the cut- off frequency of the external subwoofer f lter is 2 khz, then there are more than four octaves between 2 khz and the f rst image at 43.1 khz. a third order f lter will roll off by approximately 18 db/oct 4 octaves = 72 db attenuation. this is approximately the same as the digital attenuation used in the main channel f lters, so no internal interpolation f lter is required to remove the out-of-band images. note that by having interpolation f lters in the main channels but not the subwoofer channel, there is a potential time-delay mismatch between the main and sub channels. the group delay of the digital interpolation f lters used in the main left/right channels is about 0.5 ms. this must be compared to the group delay of the external analog f lter used in the subwoofer path. if the group-delay mismatch causes a frequency response error (when the two signals are acoustically added), then the pro- grammable delay feature can be used to put extra delay in either the subwoofer path or the main left/right path. rev. a
ad1954 C19 C byte 0 byte 1 byte 4 cdat a ccl k clatch figure 16. sample of spi write format (single-write mode) byte 0 cdat a ccl k clatch cout byte 1 hi- z dat a xxx dat a dat a hi- z figure 1 7 . s ample of spi r ead f ormat (single-w rite mode) spi port overview the ad1954 has many different control options. most signal processing parameters are controlled by writing new values to the parameter ram using the spi port. other functions, such as volume and de-emphasis f ltering, are programmed by writing to the spi control registers. the spi port uses a 4-wire interface, consisting of clatch, cclk, cdata, and cout signals. the clatch signal goes low at the beginning of a transaction and high at the end of a transaction. the cclk signal latches the serial input data on a low-to-high transition. the cdata signal carries the serial input data, and the cout signal is the serial output data. the cout signal remains three-stated until a read operation is requested. this allows other spi compatible peripherals to share the same readback line. the spi port is capable of full read/write operation for all of the memories (parameter and program) and some of the spi registers (control register 1 and the data capture registers). the memories may be accessed in both a single address mode or in burst mode. all spi transactions follow the same basic format that is shown in table i. table i. spi word format byte 0 byte 1 byte 2 byte 3 byte 4 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] data data data the r/ w the r/ w the r/ bit is low for a write and high for a read operation. w bit is lo w for a wr ite and high for a read opera tion. w the 10-bit address word is decoded into either a location in one of the two memories (parameter or program) or one of the spi registers. the number of data bytes varies according to the regis- ter or memory being accessed. in burst-write mode (available for loading the rams only), an initial address is given followed by a continuous sequence of data for consecutive ram locations. the detailed data format diagram for continuous-mode operation is given in spi read/write data formats. a sample timing diagram for a single spi write operation to the parameter ram is shown in figure 16. a sample timing diagram of a single spi read operation is shown in figure 17. the cout pin goes from three-state to driven at the beginning of byte 2. bytes 0 and 1 contain the address and r/ w r/ w r/ bit, and bytes 2 through 4 carry the data. the exact format w bit, and bytes 2 through 4 car r y the da ta. the exact for ma t w is shown in tables viii to xix. the ad1954 has several mechanisms for updating signal-processing parameters in real time without causing loud pops or clicks. in cases where large blocks of data need to be downloaded, the dsp core can be shut down and new data loaded, and then the core can be restarted. the shutdown and restart mechanisms employ a gradual volume ramp to prevent clicks and pops. in cases where only a few parameters need to be changed (e.g., a single biquad f lter), a safeload mechanism is used, which allows a block of spi registers to be transferred to the parameter ram within a single audio frame while the core is running. the safeload mode uses internal logic to prevent contention between the dsp core and the spi port. rev. a
ad1954 C20 C table ii. spi port address decoding spi address register name read/write word length 0C255 parameter ram write: 22 bits read: 22 bits 256 spi control register 1 write: 11 bits read: 2 bits 257 spi control register 2 write: 9 bits read: n/a 258 volume left write: 22 bits read: n/a 259 volume right write: 22 bits read: n/a 260 volume sub write: 22 bits read: n/a 261 data capture (spi out) #1 write: 9-bit program counter value, 2-bit register address read: 24 bits 262 data capture (spi out) #2 write: 9-bit program counter value, 2-bit register address read: 24 bits 263 data capture (serial out) left write: 9-bit program counter value, 2-bit register address read: n/a 264 data capture (serial out) right write: 9-bit program counter value, 2-bit register address read: n/a 265 parameter ram safe load register 0 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 266 parameter ram safe load register 1 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 267 parameter ram safe load register 2 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 268 parameter ram safe load register 3 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 269 parameter ram safe load register 4 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 270C510 unused 511 test register write: 8 bits read: n/a 512C1024 program ram write: 35 bits read: 35 bits spi address decoding table ii shows the address decoding used in the spi port. the spi address space encompasses a set a registers and two rams, one for holding signal processing parameters and one for hold- ing the program instructions. both of the rams are loaded on power-up from on-board boot roms. control register 1 control register 1 is an 11-bit register that controls data capture, serial modes, de-emphasis, mute, power-down, and spi-to- memory transfers. table iii documents the contents of this register. table iv details the two bits in the registers read operation. bits 1:0 set the word length, which is used in right-justif ed serial modes to determine where the msb is located relative to the start of the audio frame. bits 3:2 select one of four serial modes, which are discussed in the serial data input port section. the de-emphasis curve selection bits 5:4 turn on the internal de-emphasis f lter for one of three possible sample rates. bit 6, the soft power-down bit, stops the internal clocks to the dsp core, but does not reset the part. the digital power consumption is reduced to a low level when this bit is asserted. reset can only be asserted using the external reset pin. soft mute (bit 7) is used to initiate a volume ramp-down sequence. if the initial volume was set to 1.0, this operation will take 512 audio frames to complete. when this bit is de-asserted, a ramp-up sequence is initiated until the volume returns to its original setting. when set, bit 8 enables the dcsout pin. this must be set in order to read from the data capture serial out registers. rev. a
ad1954 C21 C the initiate-safe-transfer bit 9 will request a data transfer from the spi safeload registers to the parameter ram. the safeload registers contain address-data pairs, and only those registers that have been written to since the last transfer operation will be uploaded. the user may poll for this operation to complete by reading bit 0 of control register 1. the safeload mechanism section goes into more detail on this feature. bit 10, the halt program bit, is used to initiate a volume ramp-down followed by a shutdown of the dsp core. the user may poll for this operation to complete by reading bit 1 of control register 1. bit 11 sets the function of the de-emphasis/auxiliary serial input pin. when this bit is set to 1, the pin will function as an auxiliary serial input that is clocked by the input muxs selected clocks. when set to 0, this pin enables the 44.1 khz de-emphasis curve. table iii. control register 1 write def nition register bits function 11 de-emphasis/auxiliary serial input pin select (1 = auxiliary serial input) 10 halt program (1 = halt) 9 initiate safe transfer (1 = transfer) 8 enable dcsout output pin (1 = enable) 7 soft mute (1 = start mute sequence) 6 soft power-down (1 = power-down) 5:4 de-emphasis curve select 00 = none 01 = 44.1 khz 10 = 32 khz 11 = 48 khz 3:2 serial in mode 00 = i 2 s 01 = right-justif ed 10 = dsp 11 = left-justif ed 1:0 word length 00 = 24 bits 01 = 20 bits 10 = 16 bits 11 = 16 bits table iv. control register 1 read def nition register bits function 1 dsp core shutdown complete 1 = shutdown complete 0 = not shut down 0 safe memory load complete 1 = complete (note: cleared after read) 0 = not complete bit 0 is asserted when all requested safeload registers have been transferred to the parameter ram. it is cleared after the read operation is complete. bit 1 is asserted after the requested shutdown of the dsp is com- pleted. when this bit is set, the user is free to write or read any ram location without causing an audio pop or click. table v. control register 2 write def nition register bits function 9 volume ramp speed 1 = 160 ms full ramp time 0 = 20 ms full ramp time 8 serial port output enable 1 = enabled 0 = disabled 7:6 serial port input select 00 = in0 01 = in1 10 = in2 11 = na 5:4 mclk input select 00 = mclk0 01 = mclk1 10 = mclk2 11 = na 3 reserved 2 mclk in frequency select 0 = 512 f s f s f 1 = 256 f s f s f 1:0 mclk out frequency select 00 = disabled 01 = 512 f s f s f 10 = 256 f s f s f 11 = mclk_out = mclk_in (feedthrough) control register 2 table v documents the contents of control register 2. bits 1 and 0 set the frequency of the mclkout pin. if these bits are set to 00, then the mclkout pin is disabled (default). when set to 01, the mclkout pin is set to 512 f s f s f , which is the same as the internal master clock used by the dsp core. when set to 10, this pin is set to 256 f s f s f , derived by dividing the internal dsp clock by 2. in this mode, the output 256 f s clock by 2. in this mode, the output 256 f s clock by 2. in this mode, the output 256 f clock will be inverted with respect to the input 256 f s with respect to the input 256 f s with respect to the input 256 f clock. this is not the case with the feedthrough mode. when set to 11, the mclkout pin mirrors the selected mclk input pin (its the output of the mclk mux selector). note that the internal dsp master clock may either be the same as the selected mclk pin (when mclk frequency select is set to 512 f s f s f mode) or may be derived from the mclk pin using an internal clock doubler (when mclk frequency select is set to 256 f s f s f ). bit 2 selects one of two possible mclk input frequencies. when set to 0 (default), the mclk frequency is set to 512 f s f s f . in this mode, the internal dsp clock and the external mclk are at the same frequency. when set to 1, the mclk frequency is set to 256 f s f s f , and an internal clock doubler is used to generate the dsp clock. bits 5 and 4 select one of three clock input sources using an inter- nal mux. to avoid click and pop noises when switching mclk sources, it is recommended that the user put the dsp core in shutdown before switching mclk sources. bits 7 and 6 select one of three serial input sources using an internal mux. each source selection includes a separate sdata, lrclk, and bclk input. to avoid click and pop noises when switching serial sources, it is recommended that the user put the dsp core in shutdown before writing to these bits. rev. a
ad1954 C22 C bit 8 is used to enable the three serial output pins. these pins are connected to the output of the serial input mux, which is set by bits 7 and 6. the default is 0 (disabled). bit 9 changes the default setting of the volume ramp speed. when set to 0, it will take 1024 lrclk periods to go from full volume (6 db) to inf nite attention. when set to 1, the same operation will take 8192 lrclk periods. volume registers the ad1954 contains three 22-bit volume registers: one each for the left, right, and subwoofer channels. these registers are special because when the volume is changed from an initial value to a new value, a linear ramp is used to interpolate between the two values. this feature prevents audible clicks and pops when chang- ing volume. the ramp is set so that it takes 512 audio frames to decrement from a volume of 1.0 (default) down to 0 (muted). the volume registers are formatted in 2.20 twos complement, meaning that 0100000000000000000000 is interpreted as 1.0. negative values can also be written to the volume register, caus- ing an inversion of the signal. negative values work as expected with the ramp feature; to go from +1.0 to C1.0 will take 1024 lrclks, and the volume will pass through 0 on the way. parameter ram contents table vi shows the contents of the parameter ram for the ad1954s default program. the parameter ram is 22 bits wide and occupies spi addresses 0 through 255. the low addresses of the ram are used to control the biquad f lters. there are 22 biquad f lters in all, and each biquad has f ve coeff cients, resulting in a total memory usage of 110 coeff cients. there are also two tables of 33 coeff - cients, each that def ne the main and subcompressor input/output characteristics. these are loaded with 1.0 on power-up, resulting in no compression. other ram entries control other compressor characteristics, as well as delay and spatialization settings. the parameter ram is initialized on power-up by an on-board boot rom. the default values yield no equalization, no com- pression, no spatialization, no delay, and normal detector time constants in the compressor sections. the functionality of the ad1954 on power-up is basically that of a normal audio dac with no signal processing capability. the data format of the parameter ram is twos complement 2.20 format. this means that the coeff cients may range from +2.0 (C1 lsb) to C2.0, with 1.0 represented by the binary word 0100000000000000000000. options for parameter updates the parameter and program rams can be written and read using one of several methods. 1. direct read/write. this method allows direct access to the rams. since the rams are also being used during real-time dsp operation, a glitch will likely occur at the output. this method is not recommended. 2. direct read/write after core shutdown. this method avoids the glitch while accessing the internal rams by f rst shutting down the core. this is recommended for transferring large amounts of data, such as initializing the parameter ram at power-up or downloading a completely new program. these transfers can be sped up by using burst mode, where an initial address followed by blocks of data are sent to the ram. 3. safeload writes. this is where up to f ve spi registers are loaded with address/data intended for the parameter ram. the data is then transferred to the requested address when the ram is not busy. this method can be used for dynamic updates while live program material is playing through the ad1954. for example, a complete update of one biquad section can occur in one audio frame while the ram is not busy. this method is not available for writing to the program ram or control registers. the next section discusses these options in more detail. soft shutdown mechanism when writing large amounts of data to the program or parameter ram, the processor core should be halted to prevent unpleasant noises from appearing at the audio output. figure 18 shows a graphical representation of this mechanisms volume envelope. points a through d are referenced in the following description. bit 10 in serial control register 0 (processor shutdown bit) will shut down the processor core. when the processor shutdown bit is asserted (a), an automatic volume ramp-down sequence (b) lasting from 10 ms to 20 ms will occur, followed by a shut- down of the core. this method of shutting down the core prevents pops or clicks from occurring. after the shutdown is complete, bit 1 in control register 1 will be set. the user can either poll for this bit to be set or just wait for a period longer than 20 ms. once the core is shut down (c), the parameter or program rams may be written or read freely. to facilitate the transfer of large blocks of sequential data, a block transfer mode is supported where a starting address followed by a stream of data is sent to the memory. the address into the memory will be automatically incremented for each new write. this mode is documented in the spi read/write data formats section of this data sheet. once the data has been written, the shutdown bit can be cleared (d). the processor then will initiate a volume ramp-up sequence a d c b figure 18. recommended sequences for complete parameter or program ram uploaded using shutdown mechanism rev. a
ad1954 C23 C notes 1 the detector hold and decay times are integer values, while the rest of the parameters are fractional twos complement values. 2 the default decay time of the hold/release circuit is set fast enough so that the decay is dominated by the time constant of the rms detector. table vi. parameter ram contentsdefault program 0 iir0 left b0 1.0 1 iir0 left b1 0 2 iir0 left b2 0 3 iir0 left a1 0 4 iir0 left a2 0 5 iir1 left b0 1.0 6 iir1 left b1 0 7 iir1 left b2 0 8 iir1 left a1 0 9 iir1 left a2 0 10 iir2 left b0 1.0 11 iir2 left b1 0 12 iir2 left b2 0 13 iir2 left a1 0 14 iir2 left a2 0 15 iir3 left b0 1.0 16 iir3 left b1 0 17 iir3 left b2 0 18 iir3 left a1 0 19 iir3 left a2 0 20 iir4 left b0 1.0 21 iir4 left b1 0 22 iir4 left b2 0 23 iir4 left a1 0 24 iir4 left a2 0 25 iir5 left b0 1.0 26 iir5 left b1 0 27 iir5 left b2 0 28 iir5 left a1 0 29 iir5 left a2 0 30 iir6 left b0 1.0 31 iir6 left b1 0 32 iir6 left b2 0 33 iir6 left a1 0 34 iir6 left a2 0 35 iir0 right b0 1.0 36 iir0 right b1 0 37 iir0 right b2 0 38 iir0 right a1 0 39 iir0 right a2 0 40 iir1 right b0 1.0 41 iir1 right b1 0 42 iir1 right b2 0 43 iir1 right a1 0 44 iir1 right a2 0 45 iir2 right b0 1.0 46 iir2 right b1 0 47 iir2 right b2 0 48 iir2 right a1 0 49 iir2 right a2 0 50 iir3 right b0 1.0 51 iir3 right b1 0 52 iir3 right b2 0 53 iir3 right a1 0 default value in fractional addr function 2.20 format 54 iir3 right a2 0 55 iir4 right b0 1.0 56 iir4 right b1 0 57 iir4 right b2 0 58 iir4 right a1 0 59 iir4 right a2 0 60 iir5 right b0 1.0 61 iir5 right b1 0 62 iir5 right b2 0 63 iir5 right a1 0 64 iir5 right a2 0 65 iir6 right b0 1.0 66 iir6 right b1 0 67 iir6 right b2 0 68 iir6 right a1 0 69 iir6 right a2 0 70 iir0 xover left b0 1.0 71 iir0 xover left b1 0 72 iir0 xover left b2 0 73 iir0 xover left a1 0 74 iir0 xover left a2 0 75 iir1 xover left b0 1.0 76 iir1 xover left b1 0 77 iir1 xover left b2 0 78 iir1 xover left a1 0 79 iir1 xover left a2 0 80 iir0 xover right b0 1.0 81 iir0 xover right b1 0 82 iir0 xover right b2 0 83 iir0 xover right a1 0 84 iir0 xover right a2 0 85 iir1 xover right b0 1.0 86 iir1 xover right b1 0 87 iir1 xover right b2 0 88 iir1 xover right a1 0 89 iir1 xover right a2 0 90 iir0 xover sub b0 1.0 91 iir0 xover sub b1 0 92 iir0 xover sub b2 0 93 iir0 xover sub a1 0 94 iir0 xover sub a2 0 95 iir1 xover sub b0 1.0 96 iir1 xover sub b1 0 97 iir1 xover sub b2 0 98 iir1 xover sub a1 0 99 iir1 xover sub a2 0 100 iir2 xover sub b0 1.0 101 iir2 xover sub b1 0 102 iir2 xover sub b2 0 103 iir2 xover sub a1 0 104 iir2 xover sub a2 0 105 iir sub rms b0 1.0 106 iir sub rms b1 0 107 iir sub rms b2 0 default value in fractional addr function 2.20 format 108 iir sub rms a1 0 109 iir sub rms a2 0 110C142 main compressor 1.0 (all) look-up table base 143 main compressor 5.75 10 4 attack/rms time (120 db/sec) constant 144 main post- 1.0 compressor gain 145C177 subwoofer 1.0 compressor look-up table base 178 sub compressor 5.75 10 4 attack/rms time (120 db/sec) constant 179 post-compressor 1.0 gain (sub) 180 high-pass filter cutoff frequency 181 main compressor 0 look-ahead delay 182 delay left 0 183 delay right 0 184 delay sub 0 185 stereo spreading 0 coeff cient 186 stereo spreading 0.112694 frequency control 187 subwoofer 0.0 reinjection to main left 188 subwoofer 0.0 reinjection to main right 189 subwoofer channel 0.5 input gain from left in 190 subwoofer channel 0.5 input gain from right in 191 main detector hold 0 1 time, samples (4095 max) 192 sub detector hold 0 1 time, samples (4095 max) 193 main detector 0.069611 decay time (10000 db/sec) 2 194 sub detector 0.069611 decay time (10000 db/sec) 2 195C255 unused default value in fractional addr function 2.20 format rev. a
ad1954 C24 C that lasts for 10 ms to 20 ms. again, this reduces the chance of any pop or click noise from occurring. note that this shutdown sequence assumes that the part is set to the fast volume ramp speed (control register 2, bit 9). if the slow ramp speed is set, the volume may not reach zero before the part enters shutdown and a click or pop may be heard. safeload mechanism many applications require real-time control of f lter characteristics, such as bass/treble controls and parametric or graphic equalization. to prevent instability from occurring, all of the parameters of a particular biquad f lter must be updated at the same time; other- wise, the f lter could execute for one or two audio frames with a mixture of old and new coeff cients. this mix of old and new could cause temporary instability, leading to transients that could take a long time to decay. the method used in the ad1954 to eliminate this problem is to load a set of f ve registers in the spi port with the desired param- eter ram address and data. five registers are used because each biquad f lter has f ve coeff cients. once these registers are loaded, the initiate safe transfer bit in control register 1 should be set. once this bit is set, the processor waits for a period of time in the program sequence where the parameter ram is not being accessed for at least f ve consecutive instruction cycles. when the program counter reaches this point, the parameter ram is writ- ten with f ve new data values at addresses corresponding to those that were entered in the safeload registers. when the operation is complete, bit 0 of control register 1 (read) is set. this bit may be polled by the external microprocessor until a 1 is read and will be reset on a read operation. the polling operation is not required; the safeload mechanism guarantees that the transfer will be complete within one audio frame. the safeload logic automatically sends only those safeload registers that have been written to since the last safeload operation. for example, if only two parameters are to be sent, then it is neces- sary to write to only two of the f ve safeload registers. when the request safe transfer bit is asserted, only those two registers will be sent; the other three registers are not sent and can still hold old or invalid data. the safeload mechanism is not limited to uploading biquad coeff cients; any set of f ve values in the parameter ram may be updated in the same way. this allows real-time adjustment of the compressor/limiter, delay, or stereo spreading blocks. summary of ram modes table vii shows the sizes and available modes of the parameter ram and the program ram. spi read/write data formats the read/write formats of the spi port are designed to be byte- oriented. this allows for easy programming of common microcon- troller chips. to f t into a byte-oriented format, 0s are appended to the data f elds to extend the data-word to the next multiple of 8 bits. for example, 22-bit words written to the spi parameter ram are appended with two leading zeroes to reach 24 bits (3 bytes), and 35-bit words written to the program ram are appended with f ve zeros to reach 40 bits (5 bytes). these zero- extended data f elds are appended to a 2-byte f eld consisting of a read/write bit and a 10-bit address. the spi port knows how many data bytes to expect based on the address that is received in the f rst two bytes. the total number of bytes for a single-location spi write command can vary from 4 bytes (for a control register write) to 7 bytes (for a program ram write). block writes may be used to f ll contiguous locations in program ram or parameter ram. the read and write formats of the parameter ram, program ram and registers are detailed in tables viii to xix. table vii. read/write modes spi address burst mode memory size range read write available write modes parameter ram 256 22 0C255 yes yes yes direct write, write after core shutdown, safeload write program ram 512 35 512C1023 yes yes yes direct write, write after core shutdown table viii. parameter ram read/write format (single address) byte 0 byte 1 byte 2 byte 3 byte 4 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 00, param[21:16] param[15:8] param[7:0] table ix. parameter ram block read/write format (burst moded) byte 0 byte 1 byte 2 byte 3 byte 4 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 00, param[21:16] param[15:8] param[7:0] table x. program ram read/write format (single address) byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 00000, prog[34:32] prog[31:24] prog[23:16] prog[15:8] prog[7:0] byte 5 byte 8 byte 6 byte 9 byte 7 byte 10 addr + 1 addr + 2 byte 8 byte 9 byte 10 addr rev. a
ad1954 C25 C byte 7 byte 12 byte 8 byte 13 byte 9 byte 14 byte 10 byte 15 byte 11 byte 16 addr + 1 addr + 2 byte 12 byte 13 byte 14 byte 15 byte 16 table xi. program ram read/write format (burst address) byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 00000, prog[34:32] prog[31:24] prog[23:16] prog[15:8] prog[7:0] table xii. spi control register 1 write format byte 0 byte 1 byte 2 byte 3 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 0000, bit[11:8] bit[7:0] table xiii. spi control register 1 read format byte 0 byte 1 byte 2 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 000000, bit[1:0] table xiv. spi control register 2 write format byte 0 byte 1 byte 2 byte 3 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 000000, bit[9:8] bit[7:0] table xv. spi volume register write format byte 0 byte 1 byte 2 byte 3 byte 4 000000, addr[9:8] addr[7:0] 00, volume[21:16] volume[15:8] volume[7:0] table xvi. data capture register write format byte 0 byte 1 byte 2 byte 3 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 00000, progcount[8:6]1 progcount[5:0], regsel[1:0] 1, 2 notes 1 progcount[8:0] = value of program counter where trap occurs (see table xx). 2 regsel[1:0] selects one of four registers (see data capture register section). table xvii. data capture serial out register (address and register select) write format byte 0 byte 1 byte 2 byte 3 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 00000, progcount[8:6]1 progcount[5:0], regsel[1:0] 1, 2 notes 1 progcount[8:0] = value of program counter where trap occurs (see table xx). 2 regsel[1:0] selects one of four registers (see data capture register section). table xviii. data capture read format byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] 00000000 data[23:16] data[15:8] data[7:0] table xix. safeload register write format byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 00000, r/ w 00000, r/ w 00000, r/ , addr[9:8] addr[7:0] paramaddr[7:0] 00, param[21:16] param[15:8] param[7:0] addr rev. a
ad1954 C26 C initialization power-up sequence the ad1954 has a built-in power-up sequence that initializes the contents of the internal rams. during this time, the contents of the internal program boot rom are copied to the internal program ram memory, and likewise, the spi parameter ram is f lled with values from its associated boot rom. the data memo- ries are also cleared during this time. the boot sequence lasts for 1024 mclk cycles and starts on the rising edge of the resetb pin. since the boot sequence requires a stable master clock, the user should avoid writing to or reading from the spi registers during this period of time. note that the default power-on state of the internal clock mode circuitry is 512 f s f s f , or about 24 mhz for normal audio sample rates. this mode bypasses all the internal clock doublers and allows the external master clock to directly operate the dsp core. if the external master clock is 256 f s f s f , then the boot sequence will operate at this reduced clock rate and will take slightly longer to complete. after the boot sequence has f nished, the clock modes may be set via the spi port. for example, if the external master clock frequency is 256 f s f s f clock, the boot sequence would take 1024 256 f s f s f clock cycles to complete, after which an spi write could occur to put the ad1954 in 256 f s f s f mode. the default state of the mclk input selector is mclk0. since this input selector is controlled using the spi port, and the spi port cannot be written to until the boot sequence is complete, there must be a stable master clock signal present on the mclk0 pin at startup. setting the clock mode the ad1954 contains a clock doubler circuit that is used to gener- ate an internal 512 f s f s f clock when the external clock is 256 f s f s f . the clock mode is set by writing to bit 2 of control register 2. when the clock mode is changed, it is possible that a glitch will occur on the internal mclk signal. this may cause the proces- sor to inadvertently write an incorrect value into the data ram, which could cause an audio pop or click sound. to prevent this the following procedure is recommended: 1. assert the soft power-down bit (bit 6 in control register 1) to stop the internal mclk. 2. write the desired clock mode into bit 2 of control register 2. 3. wait at least 1 ms while the clock doublers settle. 4. de-assert the soft power-down bit. an alternative procedure is to initiate a soft shutdown of the pro- cessor core by writing a 1 to the halt program bit in control register 1. this initiates a volume ramp-down sequence followed by a shutdown of the dsp core. once the core is shut down (which can be verif ed by reading bit 1 from control register 1 or by waiting at least 20 ms), the new clock mode can be programmed by writing to bit 2 of control register 2. the dsp core can then be restarted by clearing the halt program bit in control register 1. setting the data and mclk input selectors the ad1954 contains input selectors for both serial data inputs and the mclk input. this allows the ad1954 to select a variety of input and clock sources with no external hardware required. these input selectors are controlled by writing to spi control register 2. when the data source or mclk source is changed by writing to the spi port, it is possible that a pop or click will occur in the audio. to prevent this noise, the core should be shut down by writing a 1 to the halt program bit in control register 1. this initiates a volume ramp-down sequence followed by a shutdown of the dsp core. once the core is shut down (which can be veri- f ed by reading bit 1 from control register 1 or by waiting at least 20 ms after the halt program command is issued), the new data or mclk source can be programmed by writing to control register 2. the dsp core can then be restarted by clearing the halt program bit in control register 1. data capture registers the ad1954 incorporates a feature called data capture. using this feature, any node in the signal processing f ow may be sent to either an spi readable register or a dedicated serial output pin. this allows the basic functionality of the ad1954 to be extended to a larger number of channels. alternatively, it can be used to monitor and display information about signal levels or compressor/limiter activity. the ad1954 contains four independent data capture registers. two of these registers transfer their data to the data capture serial output (dcsout) pin. the serial data format of this pin is the same as the serial data format used for the main digital inputs, and the lrclk and bclk signals can therefore be used as frame sync and bit clock signals. this pin is primarily intended to feed signals to an external dac or dsp chip to extend the number of channels that the internal dsp can access. the other two registers may be read back over the spi port and can be used for a variety of purposes. one example might be to access the db output of the internal rms detector to run a front-panel signal level display. a sample system is shown in figure 19. for each of the four data capture registers, a capture count and a register select must be set. the capture count is a number between 0 and 511 that corresponds to the program step number where the capture will occur. the register select f eld programs one of four registers in the dsp core that will be transferred to the data cap- ture register when the program counter equals the capture count. the register select f eld is decoded as follows: 00: multiplier output (mult_out) 01: output of db conversion block (db_out) 10: multiplier data input (mdi) 11: multiplier coeff cient input (mci) the capture count and register select bits are set by writing to one of the four data capture registers at the following spi addresses: 261: spi data capture setup register 1 262: spi data capture setup register 2 263: data capture serial out setup register 1 264: data capture serial out setup register 2 rev. a
ad1954 C27 C the format of the captured data varies according to the register select f elds. data captured from the mult_out setting is in 1.23 twos complement format so that a full-scale input signal will produce a full-scale digital output (assuming no processing). if the parameters are set such that the input-to-output gain is more than 0 db, then the digital output will be clipped. data captured from the db_out setting is in 5.19 format, where db_out setting is in 5.19 for ma t, where db_out the actual rms db level is equal to C87 + (3 db_out ). in this db_out ). in this db_out equation, db_out is the value that is captured. it follows that in db_out is the v alue tha t is captured. it follo ws tha t in db_out this data format, the actual output readings will range from C87 db to +9 db. the ad1954 uses the convention that 0 db is the rms value of the full-scale digital signal. data captured using the mdi setting is in 3.21 format. a 0 db digital input will produce a C12 db digital output, assuming the ad1954 is set for no processing. data captured using the mci setting is in 2.20 format. this data is generally a signal gain or f lter coeff cient, and therefore it does not make sense to talk about the input-to-output gain. a coeff - cient of 01000000000000000000 corresponds to a gain of 1.0. the data that must be written to set up the data capture is a concatenation of the 9-bit program count index with the 2-bit register select f eld. refer to table xx to f nd the capture count and register select numbers that correspond to the desired point to be monitored in the default signal processing f ow. the spi capture registers can be accessed by reading from spi locations 261 (for spi capture register 1) or 262 (for spi cap- ture register 2). the other two data capture registers (data capture serial out) automatically transfer their data to the data capture serial out (dcsout) pin. dcsout capture register 1 is pres- ent in the left data slot (as def ned by the serial input format), and dcsout capture register 2 is present in the right data slot. the format for writing to the spi data capture setup registers is given in the spi section of this data sheet. dcsout lrcl k bcl k db level meter s micr o- cont ro ller ad1954 ext dac s 5.1 channe l outpu t figure 19. typical application of data capture feature rev. a
ad1954 C28 C table xx. data capture trap indexes and register selectdefault program program count register signal description index (9 bits) select (2 bits) numeric format hpf out left 15 mult_out 1.23, clipped hpf out right 259 mult_out 1.23, clipped de-emphasis out left 19 mult_out 1.23, clipped de-emphasis out right 263 mult_out 1.23, clipped left biquad 0 output 34 mult_out 1.23, clipped left biquad 1 output 43 mult_out 1.23, clipped left biquad 2 output 52 mult_out 1.23, clipped left biquad 3 output 61 mult_out 1.23, clipped left biquad 4 output 70 mult_out 1.23, clipped left biquad 5 output 79 mult_out 1.23, clipped left biquad 6 output 88 mult_out 1.23, clipped right biquad 0 output 284 mult_out 1.23, clipped right biquad 1 output 293 mult_out 1.23, clipped right biquad 2 output 302 mult_out 1.23, clipped right biquad 3 output 311 mult_out 1.23, clipped right biquad 4 output 320 mult_out 1.23, clipped right biquad 5 output 329 mult_out 1.23, clipped right biquad 6 output 338 mult_out 1.23, clipped volume out left 114 mult_out 1.23, clipped volume out right 111 mult_out 1.23, clipped volume out sub 459 mult_out 1.23, clipped phat stereo out left 115 mult_out 1.23, clipped phat stereo out right 112 mult_out 1.23, clipped delay output left 190 mult_out 1.23, clipped delay output right 361 mult_out 1.23, clipped main compressor rms out (db) 154 db_out 24-bit positive binary, bit 19 corresponds to a 3 db change main compressor gain reduction 165 mci 2.22, 2 lsbs = 0 (linear) look-ahead delay output left 165 mdi 3.21, 2 lsbs truncated look-ahead delay output right 178 mdi 3.21, 2 lsbs truncated main compressor out left 175 mult_out 1.23, clipped main compressor out right 188 mult_out 1.23, clipped interpolator input left 191 mult_out 1.23, clipped (includes sub reinject) interpolator input right 362 mult_out 1.23, clipped (includes sub reinject) subchannel filter input 430 mult_out 1.23, clipped sub xover biquad 0 output 438 mult_out 1.23, clipped sub xover biquad 1 output 447 mult_out 1.23, clipped sub xover biquad 2 output 456 mult_out 1.23, clipped left xover biquad 0 output 99 mult_out 1.23, clipped left xover biquad 1 output 108 mult_out 1.23, clipped right xover biquad 0 output 349 mult_out 1.23, clipped right xover biquad 1 output 358 mult_out 1.23, clipped sub delay output 511 mult_out 1.23, clipped sub rms biquad output 467 mult_out 1.23, clipped sub rms output (db) 489 db_out 24-bit positive binary, bit 19 corresponds to a 3 db change sub compressor gain (linear) 495 mci 2.22, 2 lsbs = 0 subchannel output 511 mult_out 1.23, clipped rev. a
ad1954 C29 C serial data input port the ad1954s f exible serial data input port accepts data in twos complement, msb f rst format. the left channel data f eld always precedes the right channel data f eld. the serial mode is set by using mode select bits in the spi control register. in all modes except for the right-justif ed mode, the serial port will accept an arbitrary number of bits up to a limit of 24 (extra bits will not cause an error, but they will be truncated internally). in the right- justif ed mode, spi control register bits are used to set the word length to 16 bits, 20 bits, or 24 bits. the default on power-up is 24-bit mode. proper operation of the right-justif ed mode requires exactly 64 bclks per audio frame. serial data input modes figure 20 shows the serial input modes. for the left-justif ed mode, lrclk is high for the left channel and low for the right channel. data is sampled on the rising edge of bclk. the msb is left-justif ed to an lrclk transition, with no msb delay. the left-justif ed mode can accept any word length up to 24 bits. in i 2 s mode, lrclk is low for the left channel and high for the right channel. data is valid on the rising edge of bclk. the msb is left-justif ed to an lrclk transition but with a single bclk period delay. the i 2 s mode can be used to accept any number of bits up to 24. in right-justif ed mode, lrclk is high for the left channel and low for the right channel. data is sampled on the rising edge of bclk. the start of data is delayed from the lrclk edge by 16 bclk, 12 bclk, or 8 bclk intervals, depending on the selected word length. the default word length is 24 bits; other word lengths are set by writing to bits 1 and 0 of control register 1. in right-justif ed mode, it is assumed that there are 64 bclks per frame. for the dsp serial port mode, lrclk must pulse high for at least one bit clock period before the msb of the left channel is valid, and lrclk must pulse high again for at least one bit clock period before the msb of the right channel is valid. data is sampled on the falling edge of bclk. the dsp serial port mode can be used with any word length up to 24 bits. in this mode, it is the responsibility of the dsp to ensure that the left data is transmitted with the f rst lrclk pulse and that synchronism is maintained from that point forward. digital control pins mute the ad1954 offers two methods of muting the analog output. by asserting the mute signal high, the left, right, and subchan- nels are muted. as an alternative, the user can assert the mute bit in the serial control register high. the ad1954 has been designed to minimize pops and clicks when muting and unmut- ing the device by automatically ramping the gain up or down. when the device is unmuted, the volume returns to the value set in the volume register. de-emphasis the ad1954 has a built-in de-emphasis f lter that can be used to decode cds that have been encoded with the standard redbook 50 s/15 s emphasis response curve. this feature may be acti- vated by the pin or by an spi write to the control register. when activating with the pin, only the 44.1 khz sample rate curve is available. when using the spi port, curves for 44.1 khz, 32 khz, and 48 khz are supported. right channe l left channe l lrcl k bcl k sdat a lsb lsb lsb lsb lsb lsb lsb lsb left channe l right channe l lrcl k bcl k sdat a lrcl k bcl k sdat a lrcl k bcl k sdat a 1/ f s dsp mode C 16 bits to 24 bits per channe l notes 1. dsp mode doesnt identify channel. 2. lrclk normally operates at f s except dsp mode, which is 2 f s . 3. bclk frequency is normally 64 lrclk but may be operated in burst mode . msb msb msb msb msb msb msb msb left-justified mode C 16 bits to 24 bits per channe l i 2 s mode C 16 bits to 24 bits per channe l right-justified mode C select number of bits per channe l figure 20. serial input modes rev. a
ad1954 C30 C analog outputsection figure 21 shows the block diagram of the analog output section. a series of current sources are controlled by a digital - modu- lator. depending on the digital code from the modulator, each current source is connected to the summing junction of either a positive i-to-v converter or a negative i-to-v converter. two extra current sources that push instead of pull are added to set the midscale common-mode voltage. switched current source s out + out C i re f i re f C dig_in i re f + dig_in vref in fr om digit al - modul at or (dig_in) bias i re f figure 21. internal dac analog architecture all current sources are derived from the vref input pin. the gain of the ad1954 is directly proportional to the magnitude of the current sources, and therefore the gain of the ad1954 is pro- portional to the voltage on the vref pin. with vref set to 2.5 v, the gain of the ad1954 is set to provide signal swings of 2 v rms differential (1 v rms from each pin). this is the recommended operating condition. when the ad1954 is used to drive an audio power amplif er and the compression feature is being used, the vref voltage should then be derived by dividing down the supply of the amplif er. this sets a f xed relationship between the digital signal level (which is the only information available to the digital compres- sor) and the full-scale output of the amplif er (just prior to the onset of clipping). for example, if the amplif er power supply drops by 10%, then the vref input to the amplif er will also drop by 10%, which will reduce the analog output signal swing by 10%. the compressor will therefore be effective in preventing clipping, regardless of any variation in amplif er supply voltage. since the vref input effectively multiplies the signal, care must be taken to ensure that no ac signals appear on this pin. this can be accomplished by using a large decoupling capacitor in the vref external resistive divider circuit. if the vref signal is derived by dividing the 5 v analog supply, then the time constant of the divider must effectively f lter any noise on the supply. if the vref signal is derived from an unregulated power amplif er supply, then the time constant must be longer, since the ripple on the amplif er supply voltage will presumably be greater than in the case of the 5 v supply. the ad1954 should be used with an external third order f lter on each output channel. the circuit shown in figures 22, 23, and 24 combine a third order f lter and a single-ended-to-differential converter in the same circuit. the values used in the main channel (figure 22) are for a 100 khz bessel f lter, and those used in the subwoofer channel (figure 23) result in a 10 khz bessel f lter. 1.50k 3.01k 2.80k 2.7n f 499 1.00k 806 1n f 820p f 270p f 2.2n f 549 C input + input out figure 22. recommended external analog filter for main channel 3.01k 11k 56n f 1.5k 5.62k 5.62k 27n f 15n f 6.8n f 220n f 604 C input + input out 560n f 270n f 68p f 150p f 2.2n f 11k figure 23. recommended external analog filter for subchannel the lower frequency f lter is used on the subwoofer output because there is no digital interpolation f lter used in the subwoofer signal path. when calculating the resistor values for the f lter, it is impor- tant to take into account the output resistance of the ad1954, which is nominally 60 . for best distortion performance, 1% resis- tors should be used. the reason for this is that the single-ended performance of the ad1954 is about 80 db. the degree to which the single-ended distortion cancels in the f nal output is determined by the common-mode rejection of the external analog f lter, which in turn depends on the tolerance of the components used in the f lter. the sub output of the ad1954 has a lower drive strength than the left and right output pins (0.25 ma peak versus 0.5 ma peak for the left and right outputs). for this reason, it is best to use higher resistor values in the external sub f lter. figure 24 shows a recommended f lter design for the subwoofer pins used as a full bandwidth channel in a custom designed pro- gram. this design is also a 100 khz bessel f lter. 3.01k 11k 56n f 1.5k 5.62k 27n f 150p f 68p f 2.2n f 604 C input + input out 11k 5.62k figure 24. recommended external analog filter for full bandwidth signals on the subchannel output for best performance, a large (>10 f) capacitor should be con- nected between the filtcap pin and analog ground. this pin is connected to an internal node in the bias generator, and by add- ing an external capacitance to this pin, the thermal noise of the left/right channels is minimized. the sub channel is not affected by this connection. rev. a
ad1954 C31 C graphical custom programming tools custom programming tools are available for the ad1954 from adi. these graphical tools allow the user to modify the default signal processing f ow by individually placing each block (e.g., biquad f lter, phat stereo, dynamics processor) and connecting them in any desired fashion. the program then creates a f le that is loaded into the ad1954s program ram. all of the contents of the parame- ter ram can also be set using these tools. for more information on these programming tools, contact sigmadsp@analog.com. rev. a
ad1954 C32 C appendix cookbook formulae for audio eq biquad coeff cients (adapted from robert bristow-johnsons internet posting) for designing a parametric eq, follow the steps below. 1. given: frequency q db_gain sample_rate 2. compute intermediate variables: a = 10 (db_gain/40) = 2 frequency/sample_rate sn = sin( ) cs = cos( ) = sn/(2 q) 3. compute coeff cients: b0 = ( 1 + a )/( 1 + ( /a)) b1 = C2 cs/( 1 + ( /a)) b2 = (1 C ( a))/(1 + ( /a)) a1 = 2 cs/(1 + ( /a)) = Cb1 a2 = C( 1 C ( /a))/( 1 + ( /a)) 4. the transfer function implemented by the ad1954 is given by: h(z) = (b0 + b1 z C 1 + b2 z C 2)/ (1 C a1 z C 1 C a2 z C 2) note the inversion in sign of a1 and a2 relative to the more stan dard form. this form is used in this document because the ad1954 implements the difference equation using the formula below. y(n) = a1 y(n C 1) + a2 y(n C 2) + b0 x(n) + b1 x(n C 1) + b2 x(n C 2) rev. a
ad1954 C33 C outline dimensions 44-lead metric quad flat package [mqfp] (s-44) dimensions shown in millimeters 0.80 bs c 0.45 0.29 2.45 ma x 1.03 0.88 0.73 8 0.8 seating plane top view (pins down ) 1 33 34 11 12 23 22 44 coplanarit y 0.10 p in 1 0.25 ma x 0.10 mi n view a rotated 90 ccw 7 0 2.20 2.00 1.80 view a 13.45 13.20 sq 12.95 10.20 10.00 sq 9.80 compliant to jedec standards mo-112-ab 48-lead low prof le quad flat package [lqfp] (st-48) dimensions shown in millimeters top view (pins down ) 1 12 13 25 24 36 37 48 0.27 0.22 0.17 0.50 bs c 7.00 bsc sq seating plane 1.60 ma x 0.75 0.60 0.45 view a 9.00 bs c sq pin 1 0.20 0.09 1.45 1.40 1.35 0.08 ma x coplanarity view a rotated 90 ccw seating plane 10 6 2 7 3.5 0 0.15 0.05 compliant to jedec standards ms-026bbc rev. a
ad1954 C34 C revision history location page 8/03data sheet changed from rev. 0 to rev. a. changes to specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 changes to absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 changes to ordering guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 change to tpcs 1 and 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 change to main compressor/limiter section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 change to interpolation filters section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 replaced control register 1 section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 changes to control register 2 section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 changes to parameter ram contents section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 change to table vi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 change to table ix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 change to table xi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 change to data capture registers section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 change to table xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 change to analog output section section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 reversed figures 22 and 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 added figure 24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 updated outline dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 rev. a
C35 C
c02760C0C8/03(a) C36 C


▲Up To Search▲   

 
Price & Availability of EVAL-AD1954EB

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X